<template>
  <div class="wrapper">
    <div v-html="dataObject.context"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      id: '',
      dataObject: {}
    };
  },
  mounted() {
    this.id = this.$route.query.id;
    this.$http.post('/news/get', { id: this.id.toString() }).then(res => {
      console.log(res);
      if (res && res.data) {
        this.dataObject = res.data;
      }
    });
  }
};
</script>
<style lang="scss" scoped>
.wrapper {
  margin: 0.3rem;
}
</style>